package com.study.design.pattern.pattern.creational.singleton.lazy.innerclass;

/**
 * @Author: gongsl
 * @Date: 2025-02-23 12:27
 * @description:
 */
public class Singleton {
    private Singleton() {
        // 私有构造函数
    }

    private static class Holder {
        private static Singleton INSTANCE = new Singleton();
    }

    public static Singleton getInstance() {
        return Holder.INSTANCE;
    }
}
